from langchain.memory import ConversationBufferMemory

history = ConversationBufferMemory()
history.save_context({"input":"你是谁"},{"output":"我是GPT4.0大模型"})
print(history.load_memory_variables({}))

history.save_context({"input":"你是谁开发的？"},{"output":"我是OpenAI开发的"})
print(history.load_memory_variables({}))


